import Vue from 'vue'
import Vuex from 'vuex'
import state from './stata'
import mutations from './mutations'
Vue.use(Vuex)
export default new Vuex.Store({
  state,
  mutations,
  // 键值和键名相同
  // state:state,
  // mutations:mutations
  // actions:{
  //   changeCity(ctx,city){
  //     ctx.commit('changeCity',city)
  //   }
  //   },
  // getters:{
  //     doubleCity(state){
  //       return state.city + ' '+state.city
  //     }
  // }
  
}) 
